import request from '@/utils/request'

// 查询薪酬组列表
export function listRemuneration(query) {
  return request({
    url: '/remuneration/remuneration/list',
    method: 'get',
    params: query
  })
}

// 查询薪酬组详细
export function getRemuneration(id) {
  return request({
    url: '/remuneration/remuneration/' + id,
    method: 'get'
  })
}

// 新增薪酬组
export function addRemuneration(data) {
  return request({
    url: '/remuneration/remuneration',
    method: 'post',
    data: data
  })
}

// 修改薪酬组
export function updateRemuneration(data) {
  return request({
    url: '/remuneration/remuneration',
    method: 'put',
    data: data
  })
}

// 删除薪酬组
export function delRemuneration(id) {
  return request({
    url: '/remuneration/remuneration/' + id,
    method: 'delete'
  })
}
